package io.renren.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 *
 *
 * @author Mark
 * @email sunlightcs@gmail.com
 * @date 2021-03-01 13:00:41
 */
@Data
@TableName("coin_certificate_alteration_record")
public class CoinCertificateAlterationRecord implements Serializable {
	private static final long serialVersionUID = 1L;

	@TableId
	private Integer id;
	/*变化前金额*/
	private BigDecimal beforeMoney;
	/*变化后金额*/
	private BigDecimal afterMoney;
	/*变化金额*/
	private BigDecimal money;
	/*变化时间*/
	private Date alterationTime;
	/*变化人id*/
	private  Integer ruid;
	/*订单id*/
	private String orderId;
	/*类型 ： 1 平台订单 ,2 拒单，3 商户订单*/
	private Integer type;
	/* type字段：1 代表平台id,2 代表管理员id,3 商户id*/
	private Integer uid;

	public CoinCertificateAlterationRecord(Integer id,
                                           String orderId,
                                           BigDecimal beforeMoney,
                                           BigDecimal afterMoney,
                                           BigDecimal money,
                                           Date alterationTime,
                                           Integer ruid,
                                           Integer type,
                                           Integer uid){
		this.id = id;
		this.uid = uid;
		this.money = money;
		this.beforeMoney = beforeMoney;
		this.afterMoney = afterMoney;
		this.alterationTime = alterationTime;
		this.ruid = ruid;
		this.orderId = orderId;
		this.type = type;


	}



	public CoinCertificateAlterationRecord() {

	}
}
